package edu.sctu.jarime.june.day20150607.ThreadUsed;

/**
 * Created by user19 on 2015/6/7.
 */
public class Timer {
    public static void main(String[] args) {
        Timer timer = new Timer();
        timer.useTimer();

    }
    public void useTimer(){
        Thread thread=new Thread();
        System.out.println("计时开始:");
        for (int i=0;i< Integer.MAX_VALUE;i++){
            try {
                thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(i/60+":"+i%60);
        }
    }


}
